import { request } from './request'

export const getOrderList = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/list',
        loading: true,
        withToken: true,
        deepData: true,
        data
    });
};



export const getOrderInfo = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/orderInfo',
        loading: true,
        withToken: true,
        deepData: true,
        data
    });
};

export const approvedByReview = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/approvedByReview',
        withToken: true,
        deepData: true,
        data
    });
};


export const reviewFailed = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/reviewFailed',
        withToken: true,
        deepData: true,
        data
    });
};

export const initiatePayment = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/initiatePayment',
        withToken: true,
        deepData: true,
        data
    });
};

export const giveJewelry = (data: any) => {
    return request({
        method: 'post',
        url: '/api/order/giveJewelry',
        withToken: true,
        deepData: true,
        data
    });
};

export const transferFundsToUser = (data: any) => {
    return request({
        method: 'get',
        url: '/api/order/transferFundsToUser',
        withToken: true,
        deepData: true,
        data
    });
};










